package org.resotc.dao;

import java.util.HashMap;

import org.resotc.model.Track;

public interface TrackDAO {

	/**
	 * Returns a street out of a HashMap identified by its ID.
	 * 
	 * @param id
	 * @return
	 */
	public Track getTrack(int id);

	/**
	 * Returns a all streets containing HashMap.
	 * 
	 * @return
	 */
	public HashMap<Integer, Track> getTracks();

	/**
	 * Creates a new track.
	 * 
	 * @param track
	 */
	public void createTrack(Track track);

	/**
	 * Updates an existing track.
	 * 
	 * @param track
	 */
	public void updateTrack(Track track);

	/**
	 * Deletes an existing Track
	 * 
	 * @param id
	 */
	public void deleteTrack(int id);

	/**
	 * Returns true or false whether a track exists or not.
	 * 
	 * @param id
	 * @return
	 */
	public boolean trackExists(int id);
}
